package actions.visitors;

import java.util.ArrayList;
import java.util.List;

import veilingDomein.Veiling;
import veilingService.ServiceProvider;

import com.opensymphony.xwork2.ActionSupport;

public class VeilingList extends ActionSupport {
	
	private List<Veiling> veilingen = new ArrayList<Veiling>();
	

	public String execute() {
		veilingen = ServiceProvider.getVeilingService().haalVeilingenop();

		return ActionSupport.SUCCESS;
	}

	public List<Veiling> getVeilingen(){
		return veilingen;
	}

}
